gtk4-update-icon-cache: Avoid UAC on 32-bit Windows
authorChun-wei Fan <fanc999@yahoo.com.tw>
Wed, 3 Feb 2021 02:16:58 +0000 (02:16 +0000)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 3 Feb 2021 03:08:23 +0000 (11:08 +0800)
commit5f6bde8c9588f54e0c1386d3e1e63a9d308c1996
tree1cd9db44641e50a2006a4a7cb83acf85e1376ddd
parentbc838f64307353e875574379abdd31981f7875c7
gtk4-update-icon-cache: Avoid UAC on 32-bit Windows

As the program executable name has 'update' in its filename,
gtk4-update-icon-cache.exe is considered to be an installer program on 32-bit
Windows [1], which will cause the program to fail to run unless it is running
with elevated privileges (i.e. UAC).

Avoid this situation by embedding a manifest file into the final executable
that tells Windows that this is not a program that requires elevation.

Fixes issue #3632.

[1]: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN,
     under section "Installer Detection  Technology"
gtk/tools/generate-uac-manifest.py [new file with mode: 0644]
gtk/tools/meson.build